import request from "@/utils/request";
//通知列表
export function noticeMessageList(data) {
  return request({
    method: "post",
    url: "/waste/noticeMessage/getList",
    data
  });
}

//通知保存
export function noticeMessageSave(data) {
  return request({
    method: "post",
    url: "/waste/noticeMessage/save",
    data
  });
}

//通知删除
export function noticeMessageRemove(id) {
  return request({
    method: "delete",
    url: `/waste/noticeMessage/remove/${id}`
  });
}

//文件上传
export function uploadFile(data) {
  return request({
    method: "post",
    url: "/waste/file/uploadFile",
    headers: {
      "Content-Type": "multipart/form-data"
    },
    data
  });
}
//获取公告详情
export function noticeMessageDetails(id) {
  return request({
    method: "get",
    url: `/waste/noticeMessage/getById/${id}`
  });
}
